Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(devnet): pop api + fungibles use case #132

Merged
merged 66 commits into from
Sep 13, 2024
Merged

feat(devnet): pop api + fungibles use case #132

merged 66 commits into from
Sep 13, 2024

Conversation

Daanvdplas
Copy link
Collaborator

@Daanvdplas Daanvdplas commented Jul 26, 2024

Pop API + local fungibles implementation (minus native token)

Closes #65

Size of contract pop-api/examples/fungibles/ compared to the psp22 extension in ink-examples:

  • Fungibles contract:
    Original wasm size: 31.3K, Optimized: 7.4K (current IT contract is bigger because there are more functions implemented)
  • Template contract:
    Original wasm size: 30.3K, Optimized: 7.0K

Contains:

Merged after

Daanvdplas and others added 29 commits May 19, 2024 17:38
# This is the 1st commit message:

refactor: general

# This is the commit message #2:

init

# This is the commit message #3:

begin refactor

# This is the commit message #4:

refactor: error handling

# This is the commit message #5:

tests: add error handling tests

# This is the commit message #6:

WIP

# This is the commit message #7:

finalise error handling

# This is the commit message #8:

refactor: easier review
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	pop-api/Cargo.toml
#	primitives/Cargo.toml
#	primitives/src/lib.rs
#	primitives/src/storage_keys.rs
#	runtime/devnet/Cargo.toml
#	runtime/devnet/src/config/assets.rs
#	runtime/devnet/src/config/contracts.rs
#	runtime/devnet/src/extensions.rs
#	runtime/devnet/src/lib.rs
#	runtime/testnet/Cargo.toml
#	runtime/testnet/src/config/assets.rs
Required due to failure or coverage CI job.
Required due to failure or coverage CI job.
@evilrobot-01
Copy link
Collaborator

Co-authored-by: Tin Chung <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
Copy link
Collaborator

@evilrobot-01 evilrobot-01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran out of steam on pop-api/integration-tests/src/fungibles/mod.rs and marked accordingly - 7k lines just too much. All other files reviewed.

pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Show resolved Hide resolved
pallets/api/src/mock.rs Outdated Show resolved Hide resolved
primitives/src/lib.rs Outdated Show resolved Hide resolved
primitives/src/lib.rs Show resolved Hide resolved
runtime/devnet/src/config/api/mod.rs Show resolved Hide resolved
runtime/devnet/src/config/api/versioning.rs Outdated Show resolved Hide resolved
runtime/devnet/src/config/api/versioning.rs Outdated Show resolved Hide resolved
pallets/api/src/extension.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/integration-tests/src/fungibles/mod.rs Outdated Show resolved Hide resolved
pop-api/src/lib.rs Outdated Show resolved Hide resolved
pop-api/src/lib.rs Outdated Show resolved Hide resolved
pop-api/src/lib.rs Outdated Show resolved Hide resolved
primitives/src/lib.rs Show resolved Hide resolved
Daanvdplas and others added 6 commits September 13, 2024 16:50
Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Peter White <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Daanvdplas <[email protected]>
Co-authored-by: Peter White <[email protected]>
Co-authored-by: Daanvdplas <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Frank Bell <[email protected]>
Co-authored-by: Peter White <[email protected]>
Copy link
Collaborator

@evilrobot-01 evilrobot-01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@peterwht peterwht merged commit b653091 into main Sep 13, 2024
9 of 10 checks passed
@peterwht peterwht deleted the daan/api branch September 13, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: local fungibles pop api integration
5 participants